package com.client.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品订单记录表
 * </p>
 *
 * @author ckick
 * @since 2025-09-20 08:28:54
 */
@Data
@TableName("orders")
public class Orders {

    /**
     * 订单唯一标识符
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 下单用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 商品ID
     */
    @TableField("product_id")
    private Integer productId;

    /**
     * 收货地址ID
     */
    @TableField("address_id")
    private Integer addressId;

    /**
     * 订单状态
     */
    @TableField("status")
    private String status;

    /**
     * 下单时间
     */
    @TableField("created_at")
    private Date createdAt;

    @TableField("price")
    private Double price;

    @TableField(exist = false)
    private String productName;

    @TableField(exist = false)
    private Date createdAt2;

    @TableField(exist = false)
    private String shortDesc;

    @TableField(exist = false)
    private String image1;
}
